package org.example.decorator;

/**
 * 可以使用装饰器的继承来实现无限的装饰
 */
public class MusicDanceDecorator extends DanceDecorator{
    public MusicDanceDecorator(Dance dance) {
        super(dance);
    }
    public void dance(){
        System.out.println("open music");
        super.dance();
    }
}
